TARGET = HELLO
IDIR = ../include
CC = gcc
CFLAGS = -I$(IDIR)
ODIR = obj
LDIR = ../lib
LIBS = -lm
_DEPS = Function.h
DEPS = $(patsubst %,$(IDIR)/%,$(_DEPS))
_OBJ = Function.c main.c
OBJ  = $(patsubst %,$(ODIR)/%,$(_OBJ))

$(ODIR)/%.o: %.c $(DEPS)
	$(CC) -c -o $@ @< $(CFLAGS)

$(TARGET): $(OBJ)
	$(CC) -o $@ $^ $(CFLAGES) $(LIBS)

clean:
	rm -f $(TARGET) $(ODIR)/%.o *~ $(IDIR)/*~
